package com.ys.otms.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2018/11/23.
 */
@Controller
@RequestMapping("/")
public class RedirectController {
    @RequestMapping("toMiniMap")
    public String toMiniMap() {
        return "map/miniMap";
    }

    @RequestMapping("toShipHome")
    public String toShipHome() {
        return "ship/shipHome";
    }

    @RequestMapping("toCountHome")
    public String toCountHome() {
        return "count/countHome";
    }

    @RequestMapping("toSystemHome")
    public String toSystemHome() {
        return "system/systemHome";
    }

    @RequestMapping("toTransportHome")
    public String toTransportHome() {
        return "transport/transportHome";
    }

    @RequestMapping("toTransportDetail")
    public ModelAndView toTransportDetail(HttpServletRequest request) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("transport/transportDetail");
        modelAndView.addObject("planId", request.getParameter("planId"));
        return modelAndView;
    }

    @RequestMapping("toRegister")
    public String toRegister() {
        return "common/register";
    }

    @RequestMapping("toAboutUS")
    public String toAboutUS() {
        return "common/aboutUs";
    }

    @RequestMapping("toLogin")
    public String toLogin() {
        return "common/login";
    }
    @RequestMapping("toIndex")
    public String toIndex() {
        return "index";
    }

    @RequestMapping("toForgetPassword")
    public String toForgetPassword() {
        return "common/forgetPassword";
    }

    @RequestMapping("toImportShip")
    public String toImportShip() {
        return "ship/importShip";
    }


    //设置
    @RequestMapping("toExpensesDetail")
    public String toExpensesDetail() {
        return "system/expensesDetail";
    }

    @RequestMapping("toFindShipDetail")
    public String toFindShipDetail() {
        return "system/findShipDetail";
    }

    @RequestMapping("toGooderName")
    public String toGooderName() {
        return "system/gooderName";
    }

    @RequestMapping("toLogistics")
    public String toLogistics() {
        return "system/logistics";
    }

    @RequestMapping("toGoodName")
    public String toGoodName() {
        return "system/goodName";
    }

    @RequestMapping("toPersonalInfo")
    public String toPersonalInfo() {
        return "system/personalInfo";
    }

    @RequestMapping("toRecharge")
    public String toRecharge() {
        return "system/recharge";
    }

    @RequestMapping("toRechargeDetail")
    public String toRechargeDetail() {
        return "system/rechargeDetail";
    }

    @RequestMapping("toStaffInfo")
    public String toStaffInfo() {
        return "system/staffInfo";
    }

    @RequestMapping("toPayQrcode")
    public String toPayQrcode() {
        return "system/payQrcode";
    }

//    航行轨迹
    @RequestMapping("toShipTrack")
    public String toShipTrack() {
    return "common/shipTrack";
}



}

